import { translationMap } from "@/api/interface/sysManage/translation";
import { PORT1 } from "@/api/config/servicePort";
import http from "@/api";


//商家颜色表头
export const getSuppilerHeadApi = (params: FormData) => {
    return http.get(PORT1+`/goods-config/settings/supplier-color/field`, params, { cancel: false,loading: false  });
};
//商家颜色列表
export const getSupplierListApi = (params: FormData) => {
    return http.post(PORT1+`/goods-config/settings/supplier-color/list?get_auth=1&&auth_name=supplierColor`, params,  { cancel: false,loading: false  });
};

//商家颜色编辑新增
export const editSupplierColorApi = (params: FormData) => {
    return http.post(PORT1+`/goods-config/settings/supplier-color/update`, params,  { cancel: false,loading: false  });
};

//商家颜色删除
export const delSupplierColorApi = (params: FormData) => {
    return http.post(PORT1+`/goods-config/settings/supplier-color/delete`, params,  { cancel: false,loading: false  });
};

//商家颜色供应商列表
export const getSuppilerListApi = (params: FormData) => {
    return http.get(PORT1+`/goods-config/settings/supplier-color/supplier-list`, params, { cancel: false,loading: false  });
};